<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page import="java.util.HashMap" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>시골가게 - 로그인</title>
<link href="./css/css.css" rel="stylesheet" type="text/css">
<form method="post" action="login.action">
	<s:if test='%{session.id == null }'>
		<table width="758">
			<tr>
				<td height="3" colspan="3"></td>
			</tr>
			<tr>
				<td align="right">아이디</td>
				<td style="width: 90px; ">
					<input type="text" name="id" size="15" style="width: 90px; ">
				</td>
				<td rowspan="2"><input type="submit" value="로그인" style="height: 50px; width:60px;" class="LBUTTON"></td>
			</tr>
			<tr>
				<td style="width: 89px; " align="right">비밀번호</td>
				<td style="width: 90px; ">
					<input type="password" name="password" size="15" style="width: 90px; ">
				</td>
			</tr>
			<tr>
				<td colspan="3">
					<hr color="#bdbebf" style="height: 1px; ">
				</td>
			</tr>
			<tr>
				<td colspan="3" align="center">
					<a href="idFindForm.action" class="LA">아이디</a> / 
					<a href="passwordFindForm.action"class="LA">비밀번호 찾기</a> &nbsp;&nbsp; 
					<a href="memberInsert.action"class="LA">회원가입</a>
				</td>
			</tr>
		</table>
		</s:if>
		
		<s:else>
			<table width="758">
	<tr>
		<td colspan="3" align="center">${session.id}님 환영합니다!</td>
	</tr>

	<tr>
		<td colspan="3">
			<hr color="#bdbebf" style="height: 1px; ">
		</td>
	</tr>
	<tr><td colspan="3" align="center">
<input type="button" value="메인으로" onClick="javascript:location.href='main.action';" 
style="width: 175px; height:50px ">
	</td></tr>
</table>
<br>
</s:else>
	</form>
	
</body>
</html>